package com.etl.user.service;

import com.etl.user.model.User;
import com.xr.service.IBaseService;

/**
 * <p>
 * 用户 服务类
 * </p>
 *
 * @author Arnold Yang
 * @since 2018-03-25
 */
public interface IUserService extends IBaseService<User> {

  /**
   * 注册
   * @param newUser
   * @throws Exception
   */
  void signup(User newUser) throws Exception;

  /**
   * 登陆
   * @param mobileNumber
   * @throws Exception
   */
  User signin(String mobileNumber) throws Exception;

  /**
   * 退出
   * @param mobileNumber
   * @throws Exception
   */
  void signout(String mobileNumber) throws Exception;
}
